interface qiuxing {
    name: string;
    age: number;
    shengao: number;
    jinqiu: number;
    [propname: string]: any;
    say(): string;
  }
  
  interface jiaolian extends qiuxing {
    teach(): string;
  }
  
  const getResume = (a: jiaolian) => {
    console.log(a.name + "年龄是：" + a.age);
    console.log(a.name + "shengao是：" + a.shengao);
    a.jinqiu && console.log(a.name + "jinqiu是：" + a.jinqiu);
    a.sex && console.log(a.name + "性别是：" + a.sex);
    console.log(a.say())
    console.log(a.teach())
  };
  
  
  
  const a = {
    name: "cluo",
    age: 18,
    shengao: 194,
    jinqiu: 21,
    sex: "男",
    say() {
        return "欢迎光临 ， ";
    },
    teach() {
        return "我是一个老师";
    },
  };
  
  
  getResume(a)
  